package cn.wolfcode.wms.mapper;

import cn.wolfcode.wms.domain.Department;
import cn.wolfcode.wms.domain.Employee;
import cn.wolfcode.wms.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);
    int rows (QueryObject qo);

    List<Employee> queryForList (QueryObject qo);

    void deleteRelation(Long id);

    void insertRelation(@Param("employeeId") Long id, @Param("roleId") Long permissId);

    Employee selectByinfo(@Param("username") String username,@Param("password") String password);
}